/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lt.ntec.danblog.server.core.model.objectify;

import lt.ntec.danblog.server.core.model.User;
import lt.ntec.danblog.server.core.model.UserFactory;

/**
 *
 * @author Tadas
 */
class ObjectifyUserFactory implements UserFactory {

    @Override
    public User createUser(com.google.appengine.api.users.User user) {
        ObjectifyUser objectifyUser =
                new ObjectifyUser(user);
        return objectifyUser;
    }

    @Override
    public User createUser(com.google.appengine.api.users.User user,
                           boolean isAdmin) {
        ObjectifyUser objectifyUser =
                new ObjectifyUser(user);
        objectifyUser.setAdmin(isAdmin);
        return objectifyUser;
    }
}
